package com.example.finallyjob.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@ApiModel("评论类")
@Document(collection = "comments")
public class Comments {
    @ApiModelProperty("评论的id")
    @Id
    private String comment_id;
    @ApiModelProperty("所评论的回复id")
    private String article_num;
    @ApiModelProperty("评论者的用户名")
    private String comment_name;
    @ApiModelProperty("评论内容")
    private String comment_content;

    public Comments(String comment_id, String article_num, String comment_name, String comment_content) {
        this.comment_id = comment_id;
        this.article_num = article_num;
        this.comment_name = comment_name;
        this.comment_content = comment_content;
    }

    public String getArticle_num() {
        return article_num;
    }

    public void setArticle_num(String article_num) {
        this.article_num = article_num;
    }

    public String getComment_id() {
        return comment_id;
    }

    public void setComment_id(String comment_id) {
        this.comment_id = comment_id;
    }

    public String getComment_name() {
        return comment_name;
    }

    public void setComment_name(String comment_name) {
        this.comment_name = comment_name;
    }

    public String getComment_content() {
        return comment_content;
    }

    public void setComment_content(String comment_content) {
        this.comment_content = comment_content;
    }


    @Override
    public String toString() {
        return "Comment{" +
                "comment_id=" + comment_id +
                ", article_num='" + article_num + '\'' +
                ", comment_name='" + comment_name + '\'' +
                ", comment_content='" + comment_content + '\'' +
                '}';
    }
}
